-
-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix and rewrite bytebuf api #218
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可能需要对一些文件进行更多格式化
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
首先,格式化,格式化,格式化
然后我不明白,为什么要独立出一个Handler,而不是直接使用原有的事件系统?
现在格式应该没问题了(吧) |
我觉得除了新开一个handler以外都还好。 改成类似wrapper? |
感谢反射和泛型 添加了chat component的支持,具体见 https://github.com/Lumine1909/BytebufAPIExample |
新开是因为bukkit的event实现可能有性能问题(详见群) |
我现在够不到QQ群啊(大叫),discord and github only. |
bkapi的 callEvent用到了反射,而packet是一个极其频繁的事件 可能导致之后 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我觉得应该没什么问题了,稍微测试一下就合吧
--------- Co-authored-by: violetc <[email protected]>
重写了api,适配 1.20.6
支持更多数据包,添加了数据包监听功能
所有新内容已完成本地测试
食用方法: https://github.com/Lumine1909/BytebufAPIExample